/*
 * Copyright (c) 2009, Hamish Morgan
 * All rights reserver.
 */
package locusts.common.behaviours;

import javax.vecmath.Vector2d;

import locusts.common.entities.Vehicle;

/**
 * Steering to avoid a given point.
 * 
 * @author Hamish Morgan
 */
public class FleeBehaviour extends SeekBehaviour {
    
    public FleeBehaviour(double weight, Vector2d target) {
        super(weight, target);
    }
    
    public FleeBehaviour(double weight) {
        super(weight);
    }
    
    public FleeBehaviour() {
        super();
    }
    
    public Vector2d getSteering(Vehicle boid) {
        Vector2d steering = super.getSteering(boid);
        steering.scale(-1d);
        return steering;
    }
    
}
